package com.woniuxy.social.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 帖子收藏表
 * </p>
 *
 * @author John_Yeung
 * @since 2020-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("COLLECTION")
@ApiModel(value="Collection对象", description="帖子收藏表")
@KeySequence("SEQ_COLLECTION")
@NoArgsConstructor
@AllArgsConstructor
public class Collection implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "帖子收藏表主键id")
    @TableId(value = "COLLECTION_ID" , type = IdType.INPUT)
    private Long collectionId;

    @ApiModelProperty(value = "帖子收藏表所属用户")
    @TableField("COMMUNITY_ID")
    private Integer communityId;

    @ApiModelProperty(value = "收藏的帖子id")
    @TableField("INVITATION_ID")
    private Integer invitationId;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_DATE")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "软删除，0为未删除，1为已删除")
    @TableField("FLAG")
    private Integer flag;


}
